/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package universityModel.person;

/**
 *
 * @author Дмитрий
 */
public class StudentInfo {
	private String major;
	private String group;
	private int id;
	
	public StudentInfo(String major, String group, int id) {
		this.major = major;
		this.group = group;
		this.id = id;
	}
	
	public String getMajor() {
		return major;
	}
	
	public String getGroup() {
		return group;
	}
	
	public int getId() {
		return id;
	}
	
	public void setMajor(String major) {
		this.major = major;
	}
	
	public void setGroup(String group) {
		this.group = group;
	}
	
	public void setId(int id) {
		this.id = id;
	}
	
        @Override
	public String toString() {
		return  "\n Major: " + major + 
                        "\n Study group: " + group + 
                        "\n Student Id: " + id;
	}      
}
